package com.yonyou.crm.base.measure.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.base.measure.entity.MeasuresVO;
import com.yonyou.crm.base.measure.rmitf.IMeasuresRmService;
import com.yonyou.crm.base.measure.service.MeasuresBizServiceImpl;
import com.yonyou.crm.common.page.entity.Page;

@Service("measuresService")
public class MeasuresRmServiceImpl implements IMeasuresRmService {
	@Autowired
	private MeasuresBizServiceImpl bizService;
	
	public Page<MeasuresVO> getList(Page<MeasuresVO> page,Map<String, Object> paraMap) {
		return bizService.getList(page, paraMap);
	}
	
	public MeasuresVO getDetail(Long id) {
		return bizService.getDetail(id);
	}
	
	public MeasuresVO insert(MeasuresVO measure) {
		return bizService.saveVO(measure);
	}
	
	public MeasuresVO update(MeasuresVO measure) {
		return bizService.update(measure);
	}
	
	public int delete(Long id) {
		return bizService.delete(id);
	}
	
	public String batchDelete(String[] ids) {
		return bizService.batchDelete(ids);
	}
	
	public MeasuresVO updateEnableState(Long id, Integer enableState) {
		return bizService.updateEnableState(id, enableState);
	}
	
	public Page<MeasuresVO> batchUpdateEnableState(String[] ids, Integer enableState, Page<MeasuresVO> page, Map<String, Object> paraMap) {
		bizService.batchUpdateEnableState(ids, enableState);
		return bizService.getList(page, paraMap);
	}
	
	public Object selectFieldsByIds(Object[] ids) {
		return bizService.selectFieldsByIds(ids);
	}
	
	@Override
	public List<MeasuresVO> getRefList(Map<String, Object> paraMap) {
		return bizService.getRefList(paraMap);
	}
	
	@Override
	public Page<MeasuresVO> getRefPage(Page<MeasuresVO> page, Map<String, Object> paraMap) {
		return bizService.getRefPage(page, paraMap);
	}
	
}
